package com.east.sng.service;

import com.east.sng.entity.param.CourseParam;
import com.east.sng.entity.result.CourseFind;
import com.east.sng.entity.result.CourseInfo;

import java.util.List;
import java.util.Map;

/**
 * @author east
 * @date: 2020/12/29
 * @Description:
 **/
public interface CourseService {

    List<CourseInfo> findCourses(Map<String, Object> params);
    List<Map<String,String>> findCourseColumns();
    CourseFind findCourse(Integer courseId);
    List<Map<String, Object>> findClassrooms(Integer courseTypeId);

    void addCourse(CourseParam courseParam);
    void editCourse(CourseParam courseParam);
    boolean removeCourse(Integer courseId);
    boolean batchRemoveCourses(List<Integer> courseIds);
    boolean recoverCourse(Integer courseId);
    boolean batchRecoverCourses(List<Integer> courseIds);

}
